package designpattern.command.stringeditor.command;

public class UndoCommand implements Command {

    private CommandExecuter commandInvoker;

    public UndoCommand(CommandExecuter commandInvoker) {
        this.commandInvoker = commandInvoker;
    }

    @Override
    public void execute() {
        commandInvoker.undoLastCommand();
    }
}
